package com.bootdo.xiao.suggest;

/**
 * @Auther: liuj
 * @Date: 2019/6/17 16:33
 * @Description:建议37：构造代码块会想你所想
 */
public class Suggest37 {
    public static void main(String[] args){
        Base37 base37 = new Base37();
        Base37 base371 = new Base37("sss");
        Base37 base372 = new Base37(5);
        System.out.println(Base37.getNumOb());
    }
}

class Base37{
    public static int num = 0;

    {
        num++;
    }

    public Base37(){

    }

    public Base37(String str){
        this();
    }

    public Base37(int s){
    }

    public static int getNumOb(){
        return num;
    }

}
